<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<link rel="stylesheet" type="text/css" href="<?php echo $this->_webroot('skin/css/admin.css'); ?>">
<link rel="stylesheet" type="text/css" href="<?php echo $this->_webroot('skin/css/main.css'); ?>">
<script type='text/javascript' src="<?php echo $this->_webroot('skin/js/jy.js'); ?>"></script>
<style>
td span {color:red;}
.green {color:green;}
.red {color:red;}
#divname{float:left; margin:0px;}
</style>
</head>
<body>
<input type="hidden" id="update_right" value="1" ></input>
<div id="maincontent">
	<div class="wrap">
       <div class="crumbs">当前位置 &gt;&gt; <a href="">维权管理</a></div>
        <hr />

	<div class="infobox">
	<h3>维权管理</h3>
    <div class="content2">
		<form action="a.php?act=lock_shop" name="form1" id="form1" method="post">
		<table class="list_table">
		  <thead>
            <tr style=" text-align:center">
				<th width="10%">订单ID</th>
				<th width="15%" align="left">商家名称</th>
				<th width="15%" align="left">维权用户</th>
				<th width="10%" align="left">维权项目</th>
				<th width="" align="left">状态</th>
				<th width="10%">操作</th>
			</tr>
			</thead>
			<tbody>
			<?php if($result['data'] ) {
			foreach($result['data']  as $value) { ?>
			<tr style=" text-align:center">
				<td width="10%"><font size="-6"><?php echo $value['protectright']['order_id'];?></font></td>
				<td width="15%" align="left">
					<a href="../shop.php?shopid=<?php echo $value['protectright']['shop_id'];?>" target="_blank"><?php echo $value['shopinfo']['shop_name'];?>
				</td>
				<td width="15%" align="left"><?php echo $value['user']['username'];?></td>
				<td width="10%" align="left"><?php if($value['protectright']['protect_item'] == '1')
							echo "退款";
				?></td>
				<td width="" align="left">
				<?php if($value['protectright']['status']==1){
						echo "<span class='red'>客服介入中</span><br />";
					} else {
						echo "<span class='black'>维权结束</span><br />";
				}?></td>
				<td width="10%">
					<a href="<?php echo $this->_url('admin/protect/protectinfo/?');?>id=<?php echo $value['protectright']['order_id'];?>">查看</a> | 
					<a href="<?php echo $this->_url('admin/protect/closeprotect/?');?>order_id=<?php echo $value['protectright']['order_id'];?>&pid=<?php echo $value['protectright']['id'];?>">结束维权</a>
				</td>
			</tr>
			<?php }?>
			<tr>
				<td colspan="13" class="center">
					<a href="<?php echo $result['page']['head'];?>">首页</a> 
                            <a href="<?php echo $result['page']['prevPage'];?>">上一页</a> 
                            <?php foreach($result['page']['plist'] as $k => $v ) { ?>							
                            <a href="<?php echo $v; ?>"><?php echo $k; ?></a>
							<?php } ?>
                            <a href="<?php echo $result['page']['nextPage'];?>">下一页</a> 
                            <a href="<?php echo $result['page']['foot'];?>">尾页</a> 
                            当前第<?php echo $result['page']['current']['num'];?>页/共<?php echo $result['page']['pageCount'];?>页						
				</td>
			</tr>
			<?php } else { ?>
			<tr>
				<td colspan="9">暂无信息</td>
			</tr>
			<?php } ?>
			</tbody>
		</table>
		</form>
	  </div>
	 </div>		

		
	
	</div>
</div>

</body>
</html>